package com.cy.system.service;

import java.util.List;
import java.util.Map;
import java.util.Set;

import javax.servlet.http.HttpSession;

import com.cy.system.dto.UserDto;
import com.cy.system.entity.User;
import com.cy.system.entity.UserRole;
import com.github.pagehelper.Page;

public interface UserService {
	
	public List<User> getAllUser(Page page);
	
	public List<Map> getAllUserMap(Page page);

	public int editUser(User user);
	
	public int delUserByAccountId(int accountId);
	
	public User getUserByAccountId(int accountId);
	
	public User getUserByUserId(int userId);
	
	public int setUserRoleIds(List<UserRole> userRoleList);
	
	public List getUserRoleIds(int userId);
	
	public User findUserByUserName(String userName);
	
	public int addUser(User user);
	
	public int updateUser(User user,HttpSession session);
}
